|
|
|
|
|
|
|
Create a data entry form without a data control |
|
|
|
|
|
|
|
|
Learn to add, edit, and delete records |
|
|
|
|
|
|
|
|
Sample Project File: \Chapter25\DataEntry.vbp |
|
|
|
|
|
|
|
|
Creating a New ADO Project |
|
|
|
|
|
|
|
|
In this chapter, youll learn to create the Employee Information form using just ADO objects instead of the data control. To do this, lets create a new project and then copy the form you already created using the data control into this new project. |
|
|
|
|
| Creating a Data Entry From 1. Create a new project in Visual Basic. 2. Set the appropriate properties for this new project. 3. Save this project to a new directory. 4. Copy the old Employee Information form with the data control on it to the new directory. 5. Add this form to the project. Note that you may receive some errors when you load the form. This is normal because you havent added the data controls to this new project. 6. Open up the code window for the form. 7. Delete all the old code in the code window. 8. Bring up the form in design mode. 9. Delete all the old data controls. 10. Click once on the data list control to give it focus. 11. Press the Delete key to delete this control. 12. Click once on the data combo control to give it focus. 13. Press the Delete key to delete this control. 14. Click once on the data grid control to give it focus. 15. Press the Delete key to delete this control. 16. Select Project, References from the Visual Basic menu. |
|
|
|